<?php
/**
 * PHP Framework UI EntityGridType class
 * This class represents type metadata for a generic grid rendering
 * a list of entities
 *
 * This metadata include:
 * - Grid actions
 * - Grid renderable field names
 * - Grid field captions
 * - Grid item actions
 *
 * @author Andrew <andrew@vitche.com>
 * @author Frozen Rain <frozenrain@mail.ru>
 **/
class EntityGridType extends Type {

    private $_class = null;

    private $_actions = array();

    private $_captions = array();

    private $_fields = array();

    private $_item_actions = array();

    public function getActions() {
        return $this->_actions;
    }

    public function setActions($arActions) {
        $this->_actions = $arActions;
    }

    public function getCaptions() {
        return $this->_captions;
    }

    public function setCaptions($arCaptions) {
        $this->_captions = $arCaptions;
    }

    public function getClass() {
        return $this->_class;
    }

    public function setClass($strClass) {
        $this->_class = $strClass;
    }

    public function getFieldNames() {
        return $this->_fields;
    }

    public function setFieldNames($arFields) {
        $this->_fields = $arFields;
    }

    public function getItemActions() {
        return $this->_item_actions;
    }

    public function setItemActions($arItemActions) {
        $this->_item_actions = $arItemActions;
    }
}
?>